//
//  CCQuickButton.m
//  BuDeJie
//
//  Created by demoncraz on 2017/2/12.
//  Copyright © 2017年 demoncraz. All rights reserved.
//

#import "CCQuickButton.h"
#import "UIView+Frame.h"

@implementation CCQuickButton

- (void)awakeFromNib {
    [super awakeFromNib];
    self.imageView.contentMode = UIViewContentModeCenter;
}

- (void)layoutSubviews {
    
    [super layoutSubviews];
    
    self.imageView.CC_centerX = self.CC_width * 0.5;
    self.imageView.CC_y = 0;
    
    self.titleLabel.CC_y = self.CC_height - self.titleLabel.CC_height;
    [self.titleLabel sizeToFit];
    self.titleLabel.CC_centerX = self.CC_width * 0.5;
    
}

@end
